<?
$smarty=new Smarty();
if(!ANTIHACK) die("ANTIHACK...");
include_once("./includes/paging.php");
$smarty->assign("nameact","Quản lý Block");
$table="block";
$limit=30;
$numpage=5;
$act="block";
$page=intval($_GET['page']);
$listpage= paging($table,$act,$page,$total,$start,$limit,$numpage);

$q = query("select * from $table limit $start,$limit");
while($r=fetch($q))
{
	$r["content"]=str_replace("<","<;",$r["content"]);
	$block[]=$r;
}

$smarty->assign("cur_page",$page);
$smarty->assign("page",$listpage);
$smarty->assign("total",$total);
$smarty->assign("start_count",$start);
$smarty->assign("block",$block);
$smarty->display("block.htm");
?>